home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1999 Spring / macformat-077.iso / Shareware Plus / Development / SpriteWorld 2.2 Extra Demos / Scaling Blitter Test / Read Me next >
Encoding:
Text File  |  1999-02-08  |  859 b   |  12 lines  |  [TEXT/ttxt]

  1. This is just a modified version of the Simple demo I made to test scaled Sprites. I think all I had to do was add this line to AddSprites:
  2.  
  3. SWSetSpriteScaledSize(newSpriteP, GetRandom(kMinSpriteSize,kMaxSpriteSize), 
  4.                 GetRandom(kMinSpriteSize,kMaxSpriteSize) );
  5.  
  6. Naturally, I also had to add an #include for BlitPixieScaled.h, and add BlitPixieScaled.c to the project.
  7.  
  8. You can control how large or small the sprites are scaled by changing kMinSpriteSize and kMaxSpriteSize.
  9.  
  10. The demo is more interesting if you paste in the picture of a teddy bear included in the Scrapbook that comes with System 7.5 or later. Just copy it and paste it into PICT resource 128 of the demo and Simple.π.rsrc.
  11.  
  12. If the 68k version runs slowly, you can turn off the large idle Sprite and decrease the number of bouncing balls. You can also lower the maximum size of the balls.